﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using InvestmentIntelligence.DbModel.Models;

namespace InvestmentIntelligence.Data.Repository
{
    public interface ILayoutRepository
    {
        /// <summary>
        /// Creates new Layout item in the storage
        /// </summary>
        /// <param name="item">item to create</param>
        /// <returns></returns>
        int Create(Layout item);

        /// <summary>
        /// Get last saved layout (or null if missing) for given user
        /// </summary>
        /// <param name="userId">user id</param>
        /// <returns></returns>
        Layout GetLastByUser(int userId);

    }
}
